package com.qf.service.impl;

import com.qf.borrower.Borrower;
import com.qf.dao.PersonalDao;
import com.qf.loanapplication.Loanapplication;
import com.qf.service.PersonalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * @Classname PersonalServiceImpl
 * @Created by  yfan
 * @Date 2020/11/11  9:00
 * @Description
 */
import java.util.List;
@Service
public class PersonalServiceImpl implements PersonalService {

    @Autowired
    PersonalDao personalDao;
    @Override
    public List<Borrower> findPersonal() {
        return personalDao.findPersonal();
    }






   /* @Override
    public List<Borrower> findPartMessage(String name, String paymentStatus) {

        return personalDao.findPersonalZD(name,paymentStatus);
    } */
    @Override
    public List<Borrower> findPartMessage(Integer id, String paymentStatus) {

        return personalDao.findPersonalZD(id,paymentStatus);
    }

   //查状态
    @Override
    public List<Borrower> findPartMessagePaymentStatus(Integer borrowerId, String paymentStatus) {

        return personalDao.findPartMessagePaymentStatus(borrowerId,paymentStatus);
    }

    @Override
    public List<Borrower> findPartMessageById(Integer id) {
        return personalDao.findPersonalZ(id);
    }
}
